<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%  
response.setHeader("Access-Control-Allow-Origin", "*");  
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="referrer" content="no-referrer" />
    <title>数据源·思通投研·让数据驱动投资价值!</title>
	<link href="${pageContext.request.contextPath }/img/webLogoIcon.png" rel="shortcut icon">
    <link href="${pageContext.request.contextPath }/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/css/font-awesome.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/css/animate.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/css/style.css" rel="stylesheet">
    <!-- FooTable -->
    <link href="${pageContext.request.contextPath }/css/footable.core.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css" rel="stylesheet" />
    <link href="${pageContext.request.contextPath}/css/mypage.css" rel="stylesheet">
    <style>
		.select2_demo_1{
			float: left;
			width: 120px;
			display: inline;
			margin-left: 10px;
		}
		.form-control{
			display: inline;
		}
		
		.col-sm-3{
			float:right;
			width: 560px;
		}
		.input-group{
			float:right;
			width: 240px;
			margin-left: 5px;
		}
	   td{
	        vertical-align:middle;
	    }
	    .source{
	    	display:inline-block;
	        cursor: pointer;
		   	margin-bottom: 10px;
		    padding: 5px 5px;
		    border: 1px solid #ccc;
		    border-radius: 4px;
		    margin-right: 20px;
   		}
   		.sourceAct{
   			border-color:#f8ac59;
   			color:#f8ac59;
   		}
   		.webAct{
   			border-color:#f8ac59 !important;
   			color:#f8ac59;
   		}
   		.web{
	    	display:inline-block;
	        cursor: pointer;
		   	margin-bottom: 10px;
		    padding: 5px 5px;
		    border: 1px solid #ccc;
		    border-radius: 4px;
		    margin-right: 20px;
   		}
	</style>
</head>
<body>
    <div id="wrapper">
        <nav class="navbar-default navbar-static-side" role="navigation">
            <%request.setAttribute("LEFT", "hightech-enterprises");%>
            <%@include file="../components/left.jsp"%>
        </nav>
        <div id="page-wrapper" class="gray-bg">
        <div class="row border-bottom">
		<jsp:include page="../components/head.jsp" flush="true" />
        </div>
        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-9">
                <h2>高新企业</h2>
                <ol class="breadcrumb">
                	<li class="nav-main1">
                		<a href="${pageContext.request.contextPath}/admin/tosystem_overview">主页</a>
                	</li>
                	<li class="nav-main2" >
                		<a id="navigation1" href="#" >企业数据</a>
                	</li>
                	<li class="active">
                		<a>高新企业</a>
                	</li>
               	</ol>
            </div>
        </div>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-content">
                            <div class="row" style="font-size: 16px;margin-top: 2%;padding: 0 30px;" id="data-source">
                            	<h3>高新企业</h3>
                            </div>
                            <div class="row m-t-sm">
                                <div class="col-lg-12">
                                <div class="panel blank-panel">
                                <div class="panel-heading">
                                    <div class="panel-options">
                                        <ul class="nav nav-tabs">
                                            <li class="active"><a href="#tab-1" data-toggle="tab">高新企业</a></li>
                                        </ul>
                                    </div>
                                </div>
                                <div class="panel-body">
                                <div class="tab-content">
                                <div class="tab-pane active" id="tab-1">
                                
                                    <div class="feed-activity-list" id="list" style="padding: 10px 60px;">
                                    	<div class="feed-element">
				                           <div class="search-result">
				                           		<h2 style="text-align: center;" id="name"></h2>
					                           	<div style="float:left;min-height: 140px;margin-left: 50px;">
					                           		<p id="logo"></p>
					                           	</div>
					                           	<div style="float: left;padding:10px 0 0 50px;">
							                   		<p>
							                   			<span id="spider_time">采集时间： 2020-02-11 17:17:42</span>
							                   			<span id="label" style="margin-left: 30px;">标签： 高新企业</span>
							                   			<span id="status" style="margin-left: 30px;">状态： 存续</span>
							                   		</p>
							                   		<p>
							                   			<span id="legal_representative">法定代表人：  孙先强 </span>
							                   			<span id="registered_capital" style="margin-left: 30px;">注册资本： 650万元人民币</span>
							                   			<span id="establish_time" style="margin-left: 30px;">成立日期： 2014-07-08</span>
							                   		</p>
							                   		<p>
							                   			<span id="email">邮箱： 632556468@qq.com </span>
							                   			<span id="phone_number" style="margin-left: 30px;">电话：  1855160****</span>
							                   		</p>
							                   		<p>
							                   			<span id="address">地址： 南京市江北新区研创园团结路99号孵鹰大厦1255室</span>
							                   		</p>
						                   		</div>
						                   		<div style="clear: both;padding:10px 0 0 50px;">
						                   			<p id="business_scope">经营范围： 企业管理咨询、财税信息咨询、知识产权代理及咨询服务、法律信息咨询(诉讼代理除外)、科技项目咨询;计算机软件开发、技术服务、技术咨询、技术转让。(依法须经批准的项目,经相关部门批准后方可开展经营活动)
						                   			 </p>
						                   		</div>
						                   		<div style="padding:10px 0 0 50px;">
						                   			<h3 style="color: black;">工商信息</h3>
						                   			<br>
							                   		<table class="table table-bordered">
							                   			<thead>
				                                    		<tr>
				                                    			<th>统一社会信用代码</th>
				                                    			<th>企业类型</th>
				                                    			<th>所属行业</th>
				                                    			<th>登记机关</th>
				                                    			<th>参保人数</th>
														  	</tr>
														  </thead>
														  <tbody id="gsxx">
<!-- 			                                    			<tr> -->
<!-- 				                                    			<td>91320594MA1MKA6035</td> -->
<!-- 				                                    			<td>有限责任公司(自然人投资或控股)</td> -->
<!-- 				                                    			<td>租赁和商务服务业</td> -->
<!-- 				                                    			<td>苏州工业园区市场监督管理局</td> -->
<!-- 				                                    			<td>12</td> -->
<!-- 														  	</tr> -->
														  </tbody>
													</table>
						                   		</div>
						                   		<div style="padding:10px 0 0 50px;">
						                   			<h3 style="color: black;">股权穿透</h3>
						                   			<br>
							                   		<table class="table table-bordered">
			                                    		<thead>
				                                    		<tr>
				                                    			<th>序号</th>
				                                    			<th>姓名</th>
				                                    			<th>占股</th>
				                                    			<th>最终收益</th>
				                                    			<th>认缴金额</th>
														  	</tr>
			                                    		</thead>
			                                    		<tbody id="gqct">
<!-- 			                                    			<tr> -->
<!-- 				                                    			<td>1</td> -->
<!-- 				                                    			<td>孙先强</td> -->
<!-- 				                                    			<td>54%</td> -->
<!-- 				                                    			<td>54%</td> -->
<!-- 				                                    			<td>54万元</td> -->
<!-- 														  	</tr> -->
<!-- 														  	<tr> -->
<!-- 				                                    			<td>2</td> -->
<!-- 				                                    			<td>孙先强</td> -->
<!-- 				                                    			<td>54%</td> -->
<!-- 				                                    			<td>54%</td> -->
<!-- 				                                    			<td>54万元</td> -->
<!-- 														  	</tr> -->
<!-- 														  	<tr> -->
<!-- 				                                    			<td>3</td> -->
<!-- 				                                    			<td>孙先强</td> -->
<!-- 				                                    			<td>54%</td> -->
<!-- 				                                    			<td>54%</td> -->
<!-- 				                                    			<td>54万元</td> -->
<!-- 														  	</tr> -->
			                                    		</tbody>
													</table>
						                   		</div>
						                   	</div>
					                	</div>
                                    </div>
                                    
                                </div>
                                </div>
                                </div>
                                </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        </div>
        </div>
		<jsp:include page="../components/footer.jsp" flush="true" />
        </div>
        </div>
    <!-- Mainly scripts -->
    <script src="${pageContext.request.contextPath }/js/jquery-2.1.1.js"></script>
    <script src="${pageContext.request.contextPath }/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath }/js/jquery.metisMenu.js"></script>
    <script src="${pageContext.request.contextPath }/js/jquery.slimscroll.min.js"></script>
    <!-- Custom and plugin javascript -->
    <script src="${pageContext.request.contextPath }/js/inspinia.js"></script>
    <script src="${pageContext.request.contextPath }/js/pace.min.js"></script>
    <!-- FooTable -->
    <script src="${pageContext.request.contextPath }/js/footable.all.min.js"></script>
	<script src="${pageContext.request.contextPath}/js/mypage.js"></script>
    <!-- Page-Level Scripts -->
    <script>
    
        $(document).ready(function() {
            $('.footable').footable();
        });
        
        <% 
	        String article_public_id = (String)request.getParameter("article_public_id");
	    %>
	    var article_public_id = '<%=article_public_id%>'
        
        $(function(){
        	thesisnlist();
		});
        
		function thesisnlist(){
        	$.ajax({
        		url : "${pageContext.request.contextPath}/highTechEnterprises/detail",
        		type : "post",
        		data:{
        			article_public_id: article_public_id
        		},
        		success : function(res1) {
        			var res = JSON.parse(res1);
        			$('#name').html('<a target="_blank" href="'+res.detailUrl+'">'+res.name+'</a>')
        			$('#logo').html('<img style="width:120px;" src="'+res.logo+'">')
        			$('#spider_time').html('采集时间： '+res.spider_time)
        			$('#label').html('标签： '+res.label)
        			$('#status').html('状态： '+res.status)
        			$('#legal_representative').html('法定代表人： '+res.legal_representative)
        			$('#registered_capital').html('注册资本： '+res.registered_capital)
        			$('#establish_time').html('成立日期： '+res.establish_time.substring(0, 10))
        			$('#email').html('邮箱： '+res.email)
        			$('#phone_number').html('电话： '+res.phone_number)
        			$('#address').html('地址： '+res.address)
        			$('#business_scope').html('经营范围： '+res.business_scope)
        			
        			var gsxxHtml = '<tr>'+
				            			'<td>'+res.uniformSocialCreditCode+'</td>'+
				            			'<td>'+res.enterprise_type+'</td>'+
				            			'<td>'+res.industry_involved+'</td>'+
				            			'<td>'+res.registration_authority+'</td>'+
				            			'<td>'+res.insured_num+'</td>'+
								  	'</tr>'	
					$('#gsxx').html(gsxxHtml)	
					
					var equity_through = JSON.parse(res.equity_through)
					var DetailList = equity_through.gudong.DetailList
					for (var i = 0; i < DetailList.length; i++) {
						var html = '<tr>'+
			                			'<td>'+(i+1)+'</td>'+
			                			'<td>'+DetailList[i].Name+'</td>'+
			                			'<td>'+DetailList[i].Percent+'</td>'+
			                			'<td>'+DetailList[i].PercentTotal+'</td>'+
			                			'<td>'+DetailList[i].ShouldCapi+'</td>'+
								  	'</tr>'
			            $('#gqct').append(html)
					}
					if (DetailList.length == 0) {
						$('#gqct').html('<tr><td colspan=5>暂无股东信息！</td></tr>')
					}
        		},
        		error: function(res) {
        			console.log(res)
        		}
        	});
        }
		
		//跑马灯方法 
// 		 function init(){
// 			    //获取标题
// 			    var title=document.title;
// 			    //分割字符串--->字符数组
// 			    var arr=title.split("");
// 			    //删除第一个元素并返回该元素
// 			    var e=arr.shift();
// 			    //把一个对象添加到数组末尾
// 			    arr.push(e);
// 			    //把数组转换成字符串
// 			    var marquee=arr.join("");
// 			    //返回给浏览器
// 			    document.title=marquee;
// 			    //定时一直执行
// 			    window.setTimeout("init()",1000);
// 			}
// 			window.onload=init;
    </script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
</body>
</html>
